package com.zjx.shop.member.controller;

import com.zjx.shop.common.utils.R;
import com.zjx.shop.member.feign.CouponFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 郑家莽
 */
@RestController
@RequestMapping("test")
public class AOpenfeignTestController {

    @Autowired
    private CouponFeignService couponFeignService;

    @RequestMapping("/feign")
    public R feign(){
        return couponFeignService.nacos();
    }

}
